<template>
  <Tooltip placement="top">
    <template #title>
      <span>{{ $t('common.redo') }}</span>
    </template>
    <RedoOutlined class="dynamicTableIcon" @click="redo" />
  </Tooltip>
</template>
<script lang="ts" setup>
  import { RedoOutlined } from '@ant-design/icons-vue';
  import { Tooltip } from 'ant-design-vue';
  import { useTableContext } from '../../hooks/useTableContext';

  const table = useTableContext();

  function redo() {
    table.reload();
  }
</script>
